/**
 * Copyright © 2013 Creativor Studio.
 * About license information, please see LICENSE.txt.
 */
package org.creativor.rayson.demo.simple;

import java.io.IOException;

import org.creativor.rayson.api.Protocol;
import org.creativor.rayson.api.exception.IllegalProtocolException;
import org.creativor.rayson.api.server.exception.DuplicateServiceException;
import org.creativor.rayson.server.RpcServer;

/**
 * Simple demo of Rayson, server side.
 * 
 * @author creativor
 */
class SimpleServer {
	public static void main(String[] args) throws IOException,
			DuplicateServiceException, IllegalProtocolException {
		RpcServer server = new RpcServer(4410);
		server.start();
		EchoService service = new EchoService();
		server.addService(service, Protocol.class);
	}
}
